<%@page language="java" import="com.scalar.chiptrack.finance.integration.payables.ShippingMethod" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<%@ page import="com.scalar.chiptrack.utils.ConfigManager"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML>
<HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>
<META content="MSHTML 5.50.4807.2300" name=GENERATOR>
<SCRIPT language="JavaScript1.2">
function search()
{
    document.shippingMethodForm.submit();
}
function reset()
{
    document.shippingMethodForm.reset();
}
</SCRIPT>
</HEAD>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
<!-- Top Header Start-->

<%@include file="/jsp/includes/header.jsp"  %>

<!-- Top Header End-->

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
	<TD width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>

<!-- Side Navigation start -->

<%@include file="/jsp/finance/finance_menu.jsp" %>

</TD>
<!-- end of the side navigations -->

<TD bgcolor="#ffffff">
<IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
<TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
<TD valign="top" width="100%">

<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
<BR>
<!-- from here your body starts -->
<P>
<TABLE BORDER="0" WIDTH="100%">
    <html:form name="shippingMethodForm" action="/shippingMethod.do?action=search" method="post" type="com.scalar.chiptrack.finance.integration.payables.forms.ShippingMethodForm">
    <TR>
        <TD WIDTH="100%" class="NArialW">
            <P ALIGN="CENTER"><bean:message key="label.sales.salesOrder.ShippingMethod" />s Setup
		</TD>
	</TR>
	<TR>
		<TD WIDTH="100%">&nbsp;</TD>
	</TR>
    <TR>
        <TD><chiptrack:info styleClass="NArialL" /></TD>
    </TR>
    <TR>
        <TD><chiptrack:errors styleClass="NArialL" /></TD>
    </TR>
    <TR>
        <TD><chiptrack:moreErrorInfo styleClass="NArialL" /></TD>
    </TR>
	<TR>
		<TD WIDTH="100%">
	    	<TABLE BORDER="0" WIDTH="100%" CLASS="NArialL">
		    	<TR>
					<TD WIDTH="7%">&nbsp;</TD>
					<TD WIDTH="20%"><bean:message key="label.sales.salesOrder.ShippingMethod" />:</TD>
					<TD WIDTH="2%">&nbsp;</TD>
					<TD WIDTH="19%"><html:text name="shippingMethodForm" property="shippingMethod" styleClass="txfield" size="15" /></TD>
					<TD WIDTH="2%">&nbsp;</TD>
					<TD WIDTH="15%">Shipping Type:</TD>
					<TD WIDTH="1%">&nbsp;</TD>
					<TD WIDTH="25%">
                        <html:radio name="shippingMethodForm" property="shippingType" value="0" styleClass="txfield" /> Pick Up
                        <html:radio name="shippingMethodForm" property="shippingType" value="1" styleClass="txfield"/> Delivery
                    </TD>
					<TD WIDTH="9%">&nbsp;</TD>
				</TR>
				<TR>
					<TD COLSPAN="9">&nbsp;</TD>
				</TR>
			</TABLE>
		</TD>
    </TR>
	<TR>
		<TD WIDTH="100%">
			<TABLE BORDER="0" WIDTH="100%" CLASS="NArialL">
	            <TR>
					<TD WIDTH="49%">
				    	<P ALIGN="RIGHT"><A href="javascript:search()" > <IMG SRC="<%= chipTracContext %>/jsp/includes/images/search.gif" WIDTH="61" HEIGHT="17" ALIGN="BOTTOM" BORDER="0" ></A>
					</TD>
					<TD WIDTH="3%">&nbsp;</TD>
					<TD WIDTH="48%"><A href="javascript:reset()" ><IMG SRC="<%= chipTracContext %>/jsp/includes/images/reset.gif" WIDTH="53" HEIGHT="17" ALIGN="BOTTOM" BORDER="0" ></A></TD>
				</TR>
				<TR>
					<TD COLSPAN="2">&nbsp;</TD>
					<TD WIDTH="48%">&nbsp;</TD>
				</TR>
				<TR>
					<TD COLSPAN="2">To add a <bean:message key="label.sales.salesOrder.NewShippingMethod"/>, Please <A HREF="<%= chipTracContext %>/shippingMethod.do?action=new">Click Here</A></TD>
					<TD WIDTH="48%">&nbsp;</TD>
				</TR>
				<TR>
					<TD WIDTH="49%">&nbsp;</TD>
					<TD WIDTH="3%">&nbsp;</TD>
					<TD WIDTH="48%">&nbsp;</TD>
				</TR>
			</TABLE>
		</TD>
	</TR>
    <logic:present name="ShippingMethodList" >
    <TR>
		<TABLE BORDER="0" WIDTH="100%" CLASS="NArialL">
			<TR>
    			<TD WIDTH="25%" BGCOLOR="#993333">
					<P ALIGN="CENTER"><FONT COLOR="white"><bean:message key="label.sales.salesOrder.ShippingMethod" /></FONT>
				</TD>
				<TD WIDTH="25%" BGCOLOR="#993333">
					<P ALIGN="CENTER"><FONT COLOR="white">Description</FONT>
				</TD>
				<TD WIDTH="25%" BGCOLOR="#993333">
					<P ALIGN="CENTER"><FONT COLOR="white">Contact</FONT>
				</TD>
                <TD WIDTH="25%" BGCOLOR="#993333"></TD>
			</TR>
            <logic:iterate id="ShippingMethod" name="ShippingMethodList" indexId="index">
			    <TR <% if( Integer.parseInt( index.toString() ) % 2 == 0 ){ %> bgcolor='#DEE1E2' <% } else {%> bgcolor='#FFFFEE' <%}%>  class='NArialL'>
	    		    <TD WIDTH="25%">
					    <P ALIGN="CENTER"><bean:write name="ShippingMethod" property="shippingMethod"/>
				    </TD>
				    <TD WIDTH="25%">
					    <P ALIGN="CENTER"><bean:write name="ShippingMethod" property="description"/>
				    </TD>
				    <TD WIDTH="25%">
					    <P ALIGN="CENTER"><bean:write name="ShippingMethod" property="contact"/>
				    </TD>
                    <TD WIDTH="25%">
                        <P ALIGN="CENTER"><a href="<%= chipTracContext %>/shippingMethod.do?action=edit&shippingMethod=<bean:write name="ShippingMethod" property="shippingMethod"/> ">Modify</a>
				    </TD>
			    </TR>
            </logic:iterate>
	    </TABLE>
    </TR>
    </logic:present>
    </html:form>
</TABLE>
</TD></TR></TABLE>

<!-- Footer starts here -->
<%@include file="/jsp/includes/footer.jsp" %>
<!-- footer end here -->

</BODY>
</HTML>
